﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MathLib.Geometry
{
    public static class Cylinder
    {
        public static double Volume(double radius, double height)
        {
            return Circle.Area(radius) * height;
        }
        public static double LateralArea(double radius, double height)
        {
            return 2 * Math.PI * radius * height;
        }
        public static double Area(double radius, double height)
        {
            return LateralArea(radius, height) + (Circle.Area(radius) * 2);
        }
    }
}